Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI with latest yard #403

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

smortex
Copy link
Contributor

@smortex smortex commented Oct 31, 2024

Monkey patching libraries is a bad idea. Latest version of yard changed
some internal details, which broke CI.

A workaround was proposed in #401 but the root cause was not addressed.

In this commit, we replace the private io object with an instance of a
class that provide the expected IO#write method instead of nil which
does not provide this interface in CI, so that the issue is not raised
anymore.

@smortex smortex requested review from bastelfreak and a team as code owners October 31, 2024 02:38
@smortex
Copy link
Contributor Author

smortex commented Oct 31, 2024

Cc @jordanbreen28 as he authored the workaround and will probably be interested in a fix.

@bastelfreak
Copy link
Collaborator

@smortex nice workaround! can you take a look at the rubocop complaints?

Monkey patching libraries is a bad idea.  Latest version of yard changed
some internal details, which broke CI.

A workaround was proposed in puppetlabs#401 but the root cause was not addressed.

In this commit, we replace the private `io` object with an instance of a
class that provide the expected `IO#write` method instead of `nil` which
does not provide this interface in CI, so that the issue is not raised
anymore.
@smortex smortex force-pushed the fix-ci-with-latest-yard branch from b7a5d87 to 0eeb75d Compare October 31, 2024 18:32
@smortex
Copy link
Contributor Author

smortex commented Oct 31, 2024

@smortex nice workaround! can you take a look at the rubocop complaints?

Dang! Amended, thanks! Needs approval again to run CI 😁

@bastelfreak
Copy link
Collaborator

Happy to press buttons for you!

@jordanbreen28 jordanbreen28 merged commit 2024b92 into puppetlabs:main Nov 1, 2024
9 of 10 checks passed
@jordanbreen28
Copy link
Contributor

thanks @smortex!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants